home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / ptolemy / build_pt next >
Text File  |  1996-11-16  |  2KB  |  60 lines

  1. #!/bin/bash
  2. # This script should do all the neccesary steps to compile Ptolemy from scratch
  3. # This script works with original Slackware 3.0
  4. # with the patches described in the INSTALL file 
  5. #
  6. #rm -f /usr/include/asm
  7. #ln -s /usr/src/linux/include/asm-i386 /usr/include/asm
  8. #
  9. #ln -s /usr/lib/g++-include /usr/include/g++
  10. #
  11. # May be it works with other distributions too
  12.  
  13. # set some variables
  14. PTOLEMY=/users/ptolemy
  15. OCTTOOLS=$PTOLEMY/octtools
  16. PTARCH=linux
  17. PATH=$PTOLEMY/bin:$PTOLEMY/bin.${PTARCH}:$OCTTOOLS/bin.${PTARCH}:${PATH}
  18. export PTOLEMY OCTTOOLS PTARCH PATH
  19.  
  20. # this should point to where your Ptolemy archives are :
  21.  
  22. # EDIT THIS !
  23. TarDir=/var/tmp
  24.  
  25. # Unpack and untar files
  26. cd $PTOLEMY/..
  27. tar -xzf $TarDir/pt-0.6.src.tar.gz
  28. tar -xzf $TarDir/pt-0.6.other.src.tar.gz
  29.  
  30. # Apply the appropriate patch for the config-linux.mk file
  31. cd $PTOLEMY
  32. gzip -cd $TarDir/pt-0.6.linux-dynamic-patch1.gz|patch -p2
  33. #gzip -cd $TarDir/pt-0.6.linux-static-patch1.gz|patch -p2
  34.  
  35. # now start building
  36. cd $PTOLEMY
  37. make obj.$PTARCH >make.log 2>&1
  38. make install_tcltk >>make.log 2>&1
  39. make install_octtools >>make.log 2>&1
  40. make install_gthreads >>make.log 2>&1
  41.  
  42. # and now fiddle around to make gmake happy  
  43. cd obj.linux/ptcl
  44.  
  45. # create a dummy file to prevent make from sisegv'ing or aborting 
  46. # may be you'll need to create more dummy files    
  47. touch makefile.0
  48.  
  49. # this is for the second bug (otherwise make complains about a missing rule)
  50. make libptcl.so >>$PTOLEMY/make.log 2>&1  
  51. cd ../..
  52.  
  53. # and now continue the normal way
  54. make install >>make.log 2>&1
  55.  
  56. # make xv accessible
  57. cd bin.linux
  58. ln -s /usr/X11/bin/xv .
  59.